package godifactroy

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameDiFactroy = "DiFactroy"

// init
// register
// load
func init() {
	registerBeanDiFactroy()
}

// register DiFactroy
func registerBeanDiFactroy() {
	basedi.RegisterLoadBean(singleNameDiFactroy, LoadDiFactroy)
}

func FindBeanDiFactroy() *DiFactroy {
	return basedi.FindBean(singleNameDiFactroy).(*DiFactroy)
}

func LoadDiFactroy() baseiface.ISingleton {
	return NewDiFactroy()
}
